<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Zhou Wenying
  Date: 2023/3/10
  Time: 21:12
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>${book.bookName}</title>
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="pragma" content="no-cache">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link type="text/css" rel="stylesheet" href="/static/css/style.css">
    <script type="text/javascript" src="/static/layer/layer.js"></script>
    <script type="text/javascript" src="/static/js/cart.js"></script>
    <link type="text/css" rel="stylesheet" href="/static/css/flexslider.css">


</head>
<body>
<!--header-->

<jsp:include page="/page/head2.jsp">
    <jsp:param name="flag" value="7"></jsp:param>
</jsp:include>




<div class="single">
    <div class="container">
        <div class="single-grids">
            <div class="col-md-4 single-grid">
                <div class="flexslider">
                  <div class="thumb-image"> <img src="/getImg?img=${book.bookImg}" data-imagezoom="true" class="img-responsive"> </div>
                </div>
            </div>
            <div class="col-md-4 single-grid simpleCart_shelfItem">
                <h3>${book.bookName}</h3>
                <div class="tag">
                    <p>分类 : <a href="goods.action?typeid=5">${book.bookType.getBtName()}</a></p>
                </div>
                <p>${book.bookMark}</p>
                <div class="galry">
                    <%--<div class="prices">
                        <h5 class="item_price">¥ ${book.bookMoney}</h5>
                    </div>--%>
                    <div class="prices" >
                        <span style="color: black;font-size: 20px">￥${book.bookMoney}</span>
                        &nbsp;&nbsp;&nbsp;
                        <span style="color: #666;font-size: 20px"><del>￥${book.bookOldMoney}</del></span>

                    </div>
                        <br>
                    <div class="clearfix">
                        <span style="color: rgba(182,17,27,0.78);font-size: 15px">书籍新旧程度：${book.bookWornLevel}</span>
                    </div>
                </div>
                <c:if test="${noShow!=1}">
                    <div class="btn_form">
                        <a href="javascript:;" class="add-cart item_add" onclick="addCart('${book.bookName}',${book.bookId})">加入购物车</a>
                    </div>
                </c:if>
            </div>
            <div class="col-md-4 single-grid1">
                <!-- <h2>商品分类</h2> -->
<%--                <ul>--%>
<%--                    <li><a  href="booktypes_list.action?pageNumber=1&btid=-1">全部系列</a></li>--%>

<%--                    <c:forEach items="${bookTypes}" var="t">--%>
<%--                        <li><a href="booktypes_list.action?pageNumber=1&btid=${t.btId}">${t.btName}</a></li>--%>
<%--                    </c:forEach>--%>
<%--                </ul>--%>
            </div>
            <div class="clearfix"> </div>
        </div>
    </div>
</div>

<!--footer-->
<jsp:include page="/page/footer.jsp"></jsp:include>
<!--//footer-->
</body>
</html>

<script>
    $(function() {
        $('.flexslider').flexslider({
            animation: "slide",
            controlNav: "thumbnails"
        });
    });

</script>
